package Review06;

public class Student {
    private String name;
    private String noNu;
    private int scorse;
    public MeiJu sex;

    public Student() {
    }

    public Student(String name, String noNu, int scorse) {
        this.name = name;
        this.noNu = noNu;
        this.scorse = scorse;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getNoNu() {
        return noNu;
    }

    public void setNoNu(String noNu) {
        this.noNu = noNu;
    }

    public int getScorse() {
        return scorse;
    }

    public void setScorse(int scorse) {
        this.scorse = scorse;
    }

    //可变参数
    public void test(int...num){
        System.out.println(num[0]);
        System.out.println(num[1]);


    }
    @Override
    public String toString() {
        return "Student{" +
                "name='" + name + '\'' +
                ", noNu='" + noNu + '\'' +
                ", scorse=" + scorse +
                '}';
    }
}
